import VueRouter from "vue-router"

// 引入组件
import myLogin from '../views/login/myLogin'
import myRegister from '../views/register/myRegister'
import myHome from '../views/home/myHome'
import myHome1 from '../views/home/myHome1'
import myLogin1 from '../views/login/myLogin1'
import myRegister1 from '../views/register/myRegister1'
import myDentify from '../views/identify/myDentify'
import myActivity from '../views/fabu/myActivity'
import myVolunteer from '../views/fabu/myVolunteer'
import myDocument from '../views/fabu/myDocument'
import myActivity1 from '../views/canyu/myActivity1'
import myVolunteer1 from '../views/canyu/myVolunteer1'
import myDocument1 from '../views/canyu/myDocument1'
import activityContent from '../views/fabu/activityContent'
<<<<<<< HEAD
import volunteerInfoView from '../views/canyu/volunteerInfoView'
import myVolunteer2 from '../views/canyu/myVolunteer2'
import signupInfo from '../views/canyu/signupInfo'
import checkSignup from '../views/fabu/checkSignup'

=======
>>>>>>> 115e22a (更新)
// 创建并暴露一个路由器
export default new VueRouter({
    mode: 'history',    // 路由模式，该模式不会在地址中显示井号#
    routes: [
        {
            path: '/',          // 路径
            redirect: '/identity'  // 重定向
        },
        {
            path: '/login',     // 路径
            component: myLogin    // 跳转到的组件
        },
        {
            path:'/identity',
            component:myDentify
        },
        {path:'/register',
        component:myRegister

        },
     
        {
            path: '/home',     // 路径
            component: myHome  ,
            children:[
                {path: '/home/activity',component: myActivity},
                {path: '/home/volunteer',component: myVolunteer},
<<<<<<< HEAD
                {path: '/home/document',component: myDocument},
                
=======
                {path: '/home/document',component: myDocument}
>>>>>>> 115e22a (更新)
            ]

        },
        {path:'/home1',
        component: myHome1,
        children:[
            {path: '/home1/activity1',component: myActivity1},
            {path: '/home1/volunteer1',component: myVolunteer1},
<<<<<<< HEAD
            {path: '/home1/volunteer2',component: myVolunteer2},
=======
>>>>>>> 115e22a (更新)
            {path: '/home1/document1',component: myDocument1}
        ]

        },
     
        {
            path: '/login1',
          component: myLogin1
        },
<<<<<<< HEAD
        {path: '/home1/volunteer1/volunteerinfo/:vno',component: volunteerInfoView,props:true,name:'volunteer_info'},
        {path: '/home1/volunteer2/signupinfo/:vno',component: signupInfo,props:true,name:'signup_info'},
        {path:'/home/myVolunteer/:vno',component:checkSignup,props:true,name:'checkSignup'},
=======
>>>>>>> 115e22a (更新)
        {
            path:'/register1',
            component: myRegister1
        },
        {
            path:'/identity',
            component:myDentify
        },
        {
            path:'/activitycontent',
            component:activityContent
        }

      
    ]
})